package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.Goods;
import com.ecoolex.ying.space.entity.GoodsExample;
import com.ecoolex.ying.space.entity.GoodsWithBLOBs;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface GoodsMapper {
    long countByExample(GoodsExample example);

    int deleteByExample(GoodsExample example);

    int deleteByPrimaryKey(Integer goodsId);

    int insert(GoodsWithBLOBs record);

    int insertSelective(@Param("record") GoodsWithBLOBs record, @Param("selective") GoodsWithBLOBs.Column ... selective);

    Goods selectOneByExample(GoodsExample example);

    GoodsWithBLOBs selectOneByExampleWithBLOBs(GoodsExample example);

    List<GoodsWithBLOBs> selectByExampleWithBLOBs(GoodsExample example);

    List<Goods> selectByExample(GoodsExample example);

    GoodsWithBLOBs selectByPrimaryKey(Integer goodsId);

    GoodsWithBLOBs selectByPrimaryKeyWithLogicalDelete(@Param("goodsId") Integer goodsId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") GoodsWithBLOBs record, @Param("example") GoodsExample example, @Param("selective") GoodsWithBLOBs.Column ... selective);

    int updateByExampleWithBLOBs(@Param("record") GoodsWithBLOBs record, @Param("example") GoodsExample example);

    int updateByExample(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByPrimaryKeySelective(@Param("record") GoodsWithBLOBs record, @Param("selective") GoodsWithBLOBs.Column ... selective);

    int updateByPrimaryKeyWithBLOBs(GoodsWithBLOBs record);

    int updateByPrimaryKey(Goods record);

    int batchInsert(@Param("list") List<GoodsWithBLOBs> list);

    int batchInsertSelective(@Param("list") List<GoodsWithBLOBs> list, @Param("selective") GoodsWithBLOBs.Column ... selective);

    int logicalDeleteByExample(@Param("example") GoodsExample example);

    int logicalDeleteByPrimaryKey(Integer goodsId);
}